
package jp.aist.gtrc.plus.scheduler.specific.sge.jaxb.qstat;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for JAXB_QSTAT_qinstance complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="JAXB_QSTAT_qinstance">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="qtype" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="slot_used" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="slot_total" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="load_avg" type="{http://www.w3.org/2001/XMLSchema}double"/>
 *         &lt;element name="arch" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="state" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element ref="{}job_list" maxOccurs="unbounded" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "JAXB_QSTAT_qinstance", propOrder = {
    "name",
    "qtype",
    "slotUsed",
    "slotTotal",
    "loadAvg",
    "arch",
    "state",
    "jobList"
})
public class JAXBQSTATQinstance {

    @XmlElement(required = true)
    protected String name;
    @XmlElement(required = true)
    protected String qtype;
    @XmlElement(name = "slot_used")
    protected int slotUsed;
    @XmlElement(name = "slot_total")
    protected int slotTotal;
    @XmlElement(name = "load_avg")
    protected double loadAvg;
    @XmlElement(required = true)
    protected String arch;
    @XmlElement(required = true)
    protected String state;
    @XmlElement(name = "job_list")
    protected List<JAXBQSTATJob> jobList;

    /**
     * Gets the value of the name property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setName(String value) {
        this.name = value;
    }

    /**
     * Gets the value of the qtype property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getQtype() {
        return qtype;
    }

    /**
     * Sets the value of the qtype property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setQtype(String value) {
        this.qtype = value;
    }

    /**
     * Gets the value of the slotUsed property.
     * 
     */
    public int getSlotUsed() {
        return slotUsed;
    }

    /**
     * Sets the value of the slotUsed property.
     * 
     */
    public void setSlotUsed(int value) {
        this.slotUsed = value;
    }

    /**
     * Gets the value of the slotTotal property.
     * 
     */
    public int getSlotTotal() {
        return slotTotal;
    }

    /**
     * Sets the value of the slotTotal property.
     * 
     */
    public void setSlotTotal(int value) {
        this.slotTotal = value;
    }

    /**
     * Gets the value of the loadAvg property.
     * 
     */
    public double getLoadAvg() {
        return loadAvg;
    }

    /**
     * Sets the value of the loadAvg property.
     * 
     */
    public void setLoadAvg(double value) {
        this.loadAvg = value;
    }

    /**
     * Gets the value of the arch property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getArch() {
        return arch;
    }

    /**
     * Sets the value of the arch property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setArch(String value) {
        this.arch = value;
    }

    /**
     * Gets the value of the state property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getState() {
        return state;
    }

    /**
     * Sets the value of the state property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setState(String value) {
        this.state = value;
    }

    /**
     * Gets the value of the jobList property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the jobList property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getJobList().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link JAXBQSTATJob }
     * 
     * 
     */
    public List<JAXBQSTATJob> getJobList() {
        if (jobList == null) {
            jobList = new ArrayList<JAXBQSTATJob>();
        }
        return this.jobList;
    }

}
